package com.lishe.lishe.lishe.MyRecyclerView;

import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.LinearInterpolator;
import android.view.animation.RotateAnimation;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.lishe.lishe.R;


/**
 * Created by shino on 2017/10/13.
 */

public class RefreshFooterLayout extends RelativeLayout implements RefreshRecyclerViewInterface {
    private TextView mHeaderText;
    private TextView mSubHeaderText;
    private String lable1;
    private String lable2;

    public RefreshFooterLayout(Context context) {
        super(context);
        initView();
    }

    public RefreshFooterLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        initView();
    }

    public RefreshFooterLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView();
    }

    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
    public RefreshFooterLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        initView();
    }

    private void initView() {
        View v = inflate(getContext(), R.layout.refreshe_layout, this);
        mHeaderText = v.findViewById(R.id.pull_to_refresh_text);
        mSubHeaderText = v.findViewById(R.id.pull_to_refresh_sub_text);
        mHeaderText.setText("正在加载...");
//        rotateAnim();
    }

    @Override
    public void onDefault() {
//        Log.e("RefreshFooterLayout", "onDefault");
    }

    @Override
    public void onReady() {

//        Log.e("RefreshFooterLayout", "onReady");
    }

    @Override
    public void onStartRefresh() {

//        Log.e("RefreshFooterLayout", "onStartRefresh");
    }

    @Override
    public void onRefreshing() {

//        Log.e("RefreshFooterLayout", "onRefreshing");
    }

    @Override
    public void onEndRefresh() {

//        Log.e("RefreshFooterLayout", "onEndRefresh");
    }

    @Override
    public void onLoadingMore() {
    }

    @Override
    public void onEndLoadingMore() {

    }

    @Override
    public void onChangeLable(boolean isOver) {

    }
}
